package com.kscrm.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kscrm.web.mapper.ActivityExpertMapper;
import com.kscrm.web.domain.ActivityExpert;
import com.kscrm.web.service.IActivityExpertService;

/**
 * 活动与专家关联Service业务层处理
 * 
 * @author Dhq
 * @date 2025-05-12
 */
@Service
public class ActivityExpertServiceImpl implements IActivityExpertService 
{
    @Autowired
    private ActivityExpertMapper activityExpertMapper;

    /**
     * 查询活动与专家关联
     * 
     * @param activityId 活动与专家关联主键
     * @return 活动与专家关联
     */
    @Override
    public ActivityExpert selectActivityExpertByActivityId(Long activityId)
    {
        return activityExpertMapper.selectActivityExpertByActivityId(activityId);
    }

    /**
     * 查询活动与专家关联列表
     * 
     * @param activityExpert 活动与专家关联
     * @return 活动与专家关联
     */
    @Override
    public List<ActivityExpert> selectActivityExpertList(ActivityExpert activityExpert)
    {
        return activityExpertMapper.selectActivityExpertList(activityExpert);
    }

    /**
     * 新增活动与专家关联
     * 
     * @param activityExpert 活动与专家关联
     * @return 结果
     */
    @Override
    public int insertActivityExpert(ActivityExpert activityExpert)
    {
        return activityExpertMapper.insertActivityExpert(activityExpert);
    }

    /**
     * 修改活动与专家关联
     * 
     * @param activityExpert 活动与专家关联
     * @return 结果
     */
    @Override
    public int updateActivityExpert(ActivityExpert activityExpert)
    {
        return activityExpertMapper.updateActivityExpert(activityExpert);
    }

    /**
     * 批量删除活动与专家关联
     * 
     * @param activityIds 需要删除的活动与专家关联主键
     * @return 结果
     */
    @Override
    public int deleteActivityExpertByActivityIds(Long[] activityIds)
    {
        return activityExpertMapper.deleteActivityExpertByActivityIds(activityIds);
    }

    /**
     * 删除活动与专家关联信息
     * 
     * @param activityId 活动与专家关联主键
     * @return 结果
     */
    @Override
    public int deleteActivityExpertByActivityId(Long activityId)
    {
        return activityExpertMapper.deleteActivityExpertByActivityId(activityId);
    }
}
